/* color palette from <https://github.com/vuejs/theme> */
:root {
  --vt-c-white: #ffffff;
  --vt-c-white-soft: #f8f8f8;
  --vt-c-white-mute: #f2f2f2;

  --vt-c-black: #181818;
  --vt-c-black-soft: #222222;
  --vt-c-black-mute: #282828;

  --vt-c-indigo: #2c3e50;

  --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
  --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
  --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
  --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);

  --vt-c-text-light-1: var(--vt-c-indigo);
  --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
  --vt-c-text-dark-1: var(--vt-c-white);
  --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
}

/* semantic color variables for this project */
:root {
  --color-background: var(--vt-c-white);
  --color-background-soft: var(--vt-c-white-soft);
  --color-background-mute: var(--vt-c-white-mute);

  --color-border: var(--vt-c-divider-light-2);
  --color-border-hover: var(--vt-c-divider-light-1);

  --color-heading: var(--vt-c-text-light-1);
  --color-text: var(--vt-c-text-light-1);

  --section-gap: 160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: var(--vt-c-black);
    --color-background-soft: var(--vt-c-black-soft);
    --color-background-mute: var(--vt-c-black-mute);

    --color-border: var(--vt-c-divider-dark-2);
    --color-border-hover: var(--vt-c-divider-dark-1);

    --color-heading: var(--vt-c-text-dark-1);
    --color-text: var(--vt-c-text-dark-2);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  font-weight: normal;
}

body {
  min-height: 100vh;
  color: var(--color-text);
  background: var(--color-background);
  margin: 0;
  padding: 0;
  transition:
    color 0.5s,
    background-color 0.5s;
  line-height: 1.6;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Fira Sans',
    'Droid Sans',
    'Helvetica Neue',
    sans-serif;
  /* font-size: 15px; */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  height: 100%;
}

.df {
  display: flex;
}
.jc-c {
  justify-content: center;
}
.jc-sb {
  justify-content: space-between;
}
.jc-e {
  justify-content: end;
}
.ai-c {
  align-items: center;
}
.fd-c {
  flex-direction: column;
}
.fw-w {
  flex-wrap: wrap;
}
.fs-0 {
  flex-shrink: 0;
}
.f1 {
  flex: 1;
}
.fn {
  flex: none;
}
.p5 {
  padding: 5px;
}
.p10 {
  padding: 10px;
}
.p15 {
  padding: 15px;
}
.m5 {
  margin: 5px;
}
.m10 {
  margin: 10px;
}
.m15 {
  margin: 15px;
}
.mt5 {
  margin-top: 5px;
}
.mt10 {
  margin-top: 10px;
}
.mt15 {
  margin-top: 10px;
}
.mt20 {
  margin-top: 20px;
}
.mb5 {
  margin-bottom: 5px;
}
.mb10 {
  margin-bottom: 10px;
}
.mb20 {
  margin-bottom: 20px;
}
.mr5 {
  margin-right: 5px;
}
.ml5 {
  margin-left: 5px;
}
.mr10 {
  margin-right: 10px;
}
.ml10 {
  margin-left: 10px;
}
.vw {
  width: 100vw;
}
.vh {
  height: 100vh;
}
.h100 {
  height: 100%;
}
.overflow {
  overflow: hidden;
}
.font-hide {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.font-hide-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  overflow: hidden;
}

.cursor {
  cursor: pointer;
}

/* 文字颜色 */
.text-color {
  color: var(--text-color);
}
.text-color-sub {
  color: var(--text-color-sub);
}
.text-color-remark {
  color: var(--text-color-remark);
}
.text-color-note {
  color: var(--text-color-note);
}
.text-color-strong {
  color: var(--text-color-strong);
}
.text-color-reverse {
  color: var(--text-color-reverse);
}
.text-color-active {
  color: var(--text-color-active);
}
.text-color-hover:hover {
  color: var(--text-color-hover);
}
.text-color-link {
  color: var(--text-color-link);
}
/* 文字大小 */
.text-10 {
  font-size: 0.625rem; /* 10px */
  line-height: 1rem; /* 16px */
}
.text-xs {
  font-size: 0.75rem; /* 12px */
  line-height: 1rem; /* 16px */
}
.text-sm {
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem; /* 20px */
}
.text-base {
  font-size: 1rem; /* 16px */
  line-height: 1.5rem; /* 24px */
}
.text-lg {
  font-size: 1.125rem; /* 18px */
  line-height: 1.75rem; /* 28px */
}
.text-xl {
  font-size: 1.25rem; /* 20px */
  line-height: 1.75rem; /* 28px */
}
.text-2xl {
  font-size: 1.5rem; /* 24px */
  line-height: 2rem; /* 32px */
}
.text-3xl {
  font-size: 1.875rem; /* 30px */
  line-height: 2.25rem; /* 36px */
}
.text-4xl {
  font-size: 2.25rem; /* 36px */
  line-height: 2.5rem; /* 40px */
}
.text-5xl {
  font-size: 3rem; /* 48px */
  line-height: 1;
}

/* 滚动条样式 */
.scrollable {
  overflow: auto; /* Add vertical scrolling to your element */
}

/* 滚动条整体部分 */
.scrollable::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* 滚动条里面背景 */
.scrollable::-webkit-scrollbar-track {
  background: rgba(144, 147, 153, 0.3);
}
/* 滚动条里面的小方块，能向上向下移动 */
.scrollable::-webkit-scrollbar-thumb {
  /* background-color: #888; */
  background: linear-gradient(
    0deg,
    #e4d5ee 1%,
    #d1def3 36.8%,
    #b5dee5 62.2%,
    #cfebf3 88.9%
  ) !important;
  border-radius: 5px;
}

/* Style hover state for thumb */
.scrollable::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.clearfix::after {
  content: '';
  height: 0;
  display: block;
  visibility: hidden;
  clear: both;
}

.text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-overflow-3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
/* 向上偏移 */
.offset-top {
  transform: translateY(0);
  box-shadow: none;
  transition: all 0.5s ease-in-out;
}
.offset-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.25);
  transition: all 0.5s ease-in-out;
}

.scale {
  transform: scale(1);
  transition: all 0.5s ease-in-out;
}
.scale:hover {
  transform: scale(1.3);
  transition: all 0.5s ease-in-out;
}
/* 重置通知框样式 */
.ElNotification {
  width: 200px !important;
  background-color: var(--bg-color-deep) !important;
}
.ElNotification .el-notification__content,
.ElNotification .el-notification__title,
.ElNotification .el-notification__closeBtn {
  color: var(--text-color) !important;
}

/* 不同设备适应 */
.main-box {
  margin: 20px auto;
  color: var(--text-color);
}
@media screen and (min-width: 768px) {
  .main-box {
    max-width: 1100px;
    /* margin: auto; */
    padding: 0 20px;
  }
}
/* xs <768px <= sm < 992px < md <= 1200px <= lg < 1920px <= xl */
@media screen and (max-width: 767px) {
  html {
    font-size: 12px;
  }
  .main-box {
    margin: 20px;
  }
  .min-width-hide {
    display: none;
  }
  .xs-width-marging-0 {
    margin: 0 !important;
  }
  .xs-w-full {
    width: 100%;
  }
}

/* 按钮 */
.btn-primary.btn-primary {
  background-color: var(--bg-color) !important;
  color: var(--text-color);
  border: none;
}
